<?php $this->beginContent('//layouts/main'); ?>
<div class="container">
	<div id="content">
		
		<?php 
			$error = Yii::app()->user->getFlash('error');
			if (!empty($error)): ?>
			<div class="flash-error"><?php echo $error; ?></div>
		<?php endif;?>
		<?php 
			$notice = Yii::app()->user->getFlash('notice');
			if (!empty($notice)): ?>
			<div class="flash-notice"><?php echo $notice; ?></div>
		<?php endif;?>
		<?php 
			$success = Yii::app()->user->getFlash('success');
			if (!empty($success)): ?>
			<div class="flash-success"><?php echo $success; ?></div>
		<?php endif;?>
			
		 <?php if(!empty($this->h1)): ?>
			<h1><?php echo $this->h1; ?></h1>
		<?php endif; ?>
				
		<?php echo $content; ?>
	</div><!-- content -->
</div>
<?php $this->endContent(); ?>